<div id="form"></div>
<script>
$("##form").ajajform({
	header: null,
	footerButtons: [
		{value: "Создать",url: "#action#?mode=edit"}
	]
}).ajajform("insertWidget",null,null,{
	type: "grid",
	title: "Источники данных",
	name: "datasources",
	rowClasses: [{
		name:"datasource",
		columns: [
			{name: "filename", label: "Название", width: 600,url: '#action#?mode=edit&datasource_id='},
			{name:"body_exists", label:"Изменён", type: "checkbox"},
			{name:"has_prototype", label:"Есть прототип", type: "checkbox"}
		]
	}],
	rows: #JSON:datasources#
});
</script>
